package com.Lemon.Zhkuhealth.common.util;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.Lemon.Zhkuhealth.common.config.LongJsonSerializer;
import java.io.Serializable;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Some description here.
 *
 * @author LanPingX.com
 * @version 1.0, 2023/08/22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> implements Serializable {
    /** 总记录数 */
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long total;
    /** 当前页结果 */
    private List<T> rows;
}

